<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>创建个人档案</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="/static/layui-v2.5.7/layui/css/layui.css"  media="all">
  <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>


<body>
<ul class="layui-nav">
    <li class="layui-nav-item"><a href="/jump3">主页</a></li>
  <li class="layui-nav-item"><a href="/searchWorkerEvaluator">个人评价</a></li>
  <li class="layui-nav-item">
    <a href="javascript:;">个人信息</a>
    <dl class="layui-nav-child">
      <dd><a href="/createWorkerInfo">创建</a></dd>
        <dd><a href="/updateWorkerInfo">修改</a></dd>
        <dd><a href="/showWorkerInfo">查看</a></dd>
    </dl>
  </li>
  <li class="layui-nav-item"><a href="/shen_zhaopinxinxi2">招聘信息</a></li>

    <li class="layui-nav-item layui-col-md-offset8" lay-unselect="">
        <div><img src="/static/img/pimg2.jpg" class="layui-nav-img">{{ u }}</div>
        <dl class="layui-nav-child">
            <dd><a href="/">登出</a></dd>
        </dl>
    </li>
</ul>

<script src="/static/layui-v2.5.7/layui/layui.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
layui.use('element', function(){
  var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块

  //监听导航点击
  element.on('nav(demo)', function(elem){
    //console.log(elem)
    layer.msg(elem.text());
  });
});
</script>
<script>
layui.use('form', function(){
  var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功
  //但是，如果你的HTML是动态生成的，自动渲染就会失效
  //因此你需要在相应的地方，执行下述方法来进行渲染
  form.render();
});
</script>

<!-- 防止查看源代码 -->
<script type="text/javascript">
    window.onload = function(){
	    //屏蔽键盘事件
	    document.onkeydown = function (){
	        var e = window.event || arguments[0];
	        //F12
	        if(e.keyCode == 123){
	            return false;
                //Ctrl+Shift+I
            }else if((e.ctrlKey) && (e.shiftKey) && (e.keyCode == 73)){
                return false;
                //Shift+F10
            }else if((e.shiftKey) && (e.keyCode == 121)){
                return false;
                //Ctrl+U
            }else if((e.ctrlKey) && (e.keyCode == 85)){
                return false;
            }
        };
        //屏蔽鼠标右键
        document.oncontextmenu = function (){
            return false;
        }
    }
</script>
<!-- 防止查看源代码结束 -->

<script>
layui.use('laydate', function(){
  var laydate = layui.laydate;

  //执行一个laydate实例
  laydate.render({
    elem: '#birthday' ,//指定元素
      type: 'date'//年月日，也是默认，不要这个也可以
      ,value: '1999-01-01'
  });
});
</script>



<div style="padding: 20px; background-color: #F2F2F2;">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  <legend>创建个人档案</legend>
</fieldset>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  <legend>基本信息</legend>
</fieldset>
    <form class="layui-form" action="/submitWorkerInfo" style="width: 60%;margin-top: 20px;">
  <div class="layui-form-item">
    <label class="layui-form-label">姓名</label>
    <div class="layui-input-block">
      <input type="text" name="name"  placeholder="请输入姓名" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">性别</label>
    <div class="layui-input-block">
      <input type="radio" name="sex" value="男" title="男" checked>
      <input type="radio" name="sex" value="女" title="女" >

      </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">出生年月</label>
      <div class="layui-input-inline">
        <input type="text" class="layui-input" name="birthday" id="birthday" placeholder="yyyy-MM-dd">
      </div>
    </div>



        <div class="layui-form-item">
    <label class="layui-form-label">现居地</label>
    <div class="layui-input-block">
      <select name="city" lay-verify="required">
        <option value=""></option>
        <option value="北京" checked>北京</option>
        <option value="上海">上海</option>
        <option value="南京">南京</option>
        <option value="广州">广州</option>
        <option value="深圳">深圳</option>
        <option value="西安">西安</option>
      </select>
    </div>
  </div>



  <div class="layui-form-item">
    <label class="layui-form-label">电话</label>
    <div class="layui-input-block">
      <input type="text" name="tel"  placeholder="请输入电话" autocomplete="off" class="layui-input">
    </div>
  </div>

    <div class="layui-form-item">
    <label class="layui-form-label">电子邮箱</label>
    <div class="layui-input-block">
      <input type="text" name="email"  placeholder="请输入电子邮箱" autocomplete="off" class="layui-input">
    </div>
  </div>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  <legend>就业情况</legend>
</fieldset>
    <div class="layui-form-item">
    <label class="layui-form-label">工作状态</label>
    <div class="layui-input-block">
      <select name="workstate" lay-verify="required">
        <option value=""></option>
        <option value="待业" checked>待业</option>
        <option value="已就业">已就业</option>
        <option value="退休">退休</option>
      </select>
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">所属企业</label>
    <div class="layui-input-block">
      <input type="text" name="cname"  placeholder="请输入所属企业" autocomplete="off" class="layui-input">
    </div>
  </div>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  <legend>教育背景</legend>
</fieldset>
          <div class="layui-form-item">
    <label class="layui-form-label">专业</label>
    <div class="layui-input-block">
      <input type="text" name="major"  placeholder="请输入专业" autocomplete="off" class="layui-input">
    </div>
  </div>

          <div class="layui-form-item">
    <label class="layui-form-label">毕业院校</label>
    <div class="layui-input-block">
      <input type="text" name="school"  placeholder="请输入毕业院校" autocomplete="off" class="layui-input">
    </div>
  </div>

          <div class="layui-form-item">
    <label class="layui-form-label">学历</label>
    <div class="layui-input-block">
      <input type="text" name="education"  placeholder="请输入学历" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formDemo" onclick="alert('创建成功')">创建</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>

</div>

</body>
</html>